package ch0624.case01;

public class Test01 {
    public static void main(String[] args){
        Tiger tiger;
        Cat cat;
        tiger=new Tiger();
        cat=new Cat();
        System.out.println("tiger的状态"+tiger.getState());
        System.out.println("cat的状态"+cat.getState());
        tiger.start();
        cat.start();
        for (int i=1;i<=6;i++){
            System.out.printf("\n%s","tiger状态"+tiger.getState());
            System.out.printf("\n%s","cat状态"+cat.getState());
            System.out.printf("\n%s","主人"+i);
        }
        System.out.printf("\n%s","tiger状态"+tiger.getState());
        System.out.printf("\n%s","cat状态"+cat.getState());
    }
}
